package com.swpu.demo.mapper;

import com.swpu.demo.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface SysUserMapper{
    SysUser selectOneUser(@Param("username") String username);
    List<SysUser> listAllUsers();
    int addOneUser(SysUser user);
    int updateOneUser(SysUser user);
    int deleteOneUser(@Param("id") int id);
}
